<?php
/**
 * @auther:周卫星
 * @date:2019/10/28
 * @fileName:index.blade.php
 * @fileDesc:  商户列表
 */
?>

@extends('admin_layout.layout')
@section('title', '商户列表')
@push('css')
@endpush

@push('js')
    {{--<script src="{{ Illuminate\Support\Facades\URL::asset('echarts\echarts.min.js') }}"></script>
    <script src="{{ Illuminate\Support\Facades\URL::asset('js\admin\index\echarts.js') }}"></script>--}}
    <script src="{{ Illuminate\Support\Facades\URL::asset('js\admin\biz\index.js') }}"></script>
@endpush

@section('content')
    {{-- 搜索表单 --}}
    <form class="layui-form" action="">
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <input type="text" name="biz_name" required lay-verify="required" placeholder="请输入商户名称" autocomplete="off" class="layui-input">
            </div>
            <button class="layui-btn" id="search" lay-submit lay-filter="searche_btn">搜索</button>
        </div>
    </form>
    <table id="bizList" lay-filter="bizList" data-url="{{ url('biz/list') }}">
        <script id="operation" type="text/html">
            <div class="layui-btn-container">
                <a href="{{ url('/biz/info/') }}/@{{ d.biz_id }}" lay-event="info" onclick="return false;" class="layui-btn layui_biz_info">查看详情</a>
                <a href="{{ url('/biz/updateInfo/') }}/@{{ d.biz_id }}" class="layui-btn layui_biz_info">修改</a>
                @{{# if(d.enabled === 1) { }}
                <button lay-event="enabled" class="layui-btn layui-bg-red" data-token="{{ csrf_token() }}" data-id="@{{ d.biz_id }}">禁用</button>
                @{{# } }}
                @{{# if(d.enabled === 0){ }}
                <button lay-event="enable" data-token="{{ csrf_token() }}" data-id="@{{ d.biz_id }}" class="layui-btn">启用</button>
                @{{# } }}
            </div>
        </script>
    </table>
@endsection
